<template>
    <div class="home-header">
        <div class="header-left">
            <div class="iconfont arrow-back">&#xe667;</div>
        </div>
        <div class="header-input">
            <span class="iconfont">&#xe62c;</span>
            输入城市/景点/游玩主题
        </div>
        <router-link to='/city' class="header-right">
            {{this.city}}
            <span class="iconfont arrow-city">&#xe615;</span>
        </router-link>
    </div>
</template>

<script>
import {mapState} from 'vuex'
export default {
    computed: {
        ...mapState(['city'])
    }
}
</script>

<style scoped lang='stylus'>
@import '~@/assets/varibles.styl'
    .home-header 
        display :flex
        background-color $bgc
        color:#fff
        line-height : $headerHeight
        .header-left
            width :.64rem
            .arrow-back
                font-size .4rem
                text-align center
        .header-input
            flex:1
            height .64rem
            line-height .64rem
            background-color #fff
            color #eee
            border-radius .1rem
            margin-top:.12rem
            margin-left:.2rem
            padding-left .2rem
        .header-right
            min-width :1.04rem
            padding: 0 .1rem
            text-align center
            color #fff
            .arrow-city
                font-size .24rem
                margin-left -.04rem
</style>
